<!--
 * @Author: DSJ
 * @Date: 2021-08-17 14:48:33
 * @LastEditTime: 2021-08-17 15:22:15
 * @LastEditors: Please set LastEditors
 * @Description: 梦幻西游
 * @FilePath: \昆山杰普实习基地\Mygit\动画\梦幻西游.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>梦幻西游</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }
        ul>li {
            margin: 0;
            padding: 0;
            text-decoration: none;
        }
        .main {
            width: 100%;
            height: 786px;
            overflow-x: hidden;
        }
        .main>.bg {
            width: 3920px;
            margin-left: -1920px;
            height: 100%;
            background-image: url(../1/tyut-2021/1-html/day07/images/bg.jpg);
            background-repeat: repeat-x;
            
            animation-name: bg;
            animation-duration: 30s;
            animation-timing-function: linear;
            animation-iteration-count:infinite;
        }
        
        .content {
            width: 950px;
            position: absolute;
            left: 50%;
            margin-left: -475px;bottom: 30px;
        }
        .content ul::after{
            display: block;
            content: "";
            clear: both;
        }
        .content>ul>li {
            float: left;
            width:200px ;
            overflow: hidden;
        }
        .content>ul>li>img {
            width: 1600px;
            animation-name: people;
            animation-duration: 1s;
            animation-timing-function: steps(8);
            animation-iteration-count:infinite;
        }
        
        @keyframes people {
            from{
                margin-left: 0px;
            }
            to{
                margin-left: -1600px;
            }
        }
        
        @keyframes bg {
            from{
                margin-left: -1920px;
            }
            to{
                margin-left: 0px;
            }
        }
    </style>
</head>
<body>
    <div class="main">
        <div class="bg">
        </div>
        <div class="content">
            <ul>
                <li><img src="../1/tyut-2021/1-html/day07/images/wk.png" alt=""></li>
                <li><img src="../1/tyut-2021/1-html/day07/images/bj.png" alt=""></li>
                <li><img src="../1/tyut-2021/1-html/day07/images/ts.png" alt=""></li>
                <li><img src="../1/tyut-2021/1-html/day07/images/ss.png" alt=""></li>
            </ul>
        </div>
    </div>
</body>
</html>
